package com.youlai.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.youlai.system.model.entity.ProductCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.system.model.form.CategoryForm;
import com.youlai.system.model.query.CategoryPageQuery;
import com.youlai.system.model.query.ProductPageQuery;
import com.youlai.system.model.vo.CategoryPageVo;
import com.youlai.system.model.vo.CategoryTreeVo;
import com.youlai.system.model.vo.ProductPageVo;

import java.util.List;

/**
* @author zzps
* @description 针对表【t_product_category(商品种类表)】的数据库操作Service
* @createDate 2024-03-11 10:03:59
*/
public interface ProductCategoryService extends IService<ProductCategory> {

    IPage<CategoryPageVo> getCategoryPageList( CategoryPageQuery categoryPageQuery);

    boolean addCategory(CategoryForm categoryForm);

    boolean updateCategory(CategoryForm categoryForm);

    boolean updateCategoryStatus(Long id, Integer status);

    List<CategoryTreeVo> getCategoryTree();

    List<CategoryPageVo> getCategoryByLevel(Integer level);

    boolean removeCategoryById(Long id);
}
